import { defineStore } from 'pinia';
import { ref } from 'vue';

export const useAppStatusStore = defineStore('appStatus', () => {
  // 全局加载状态
  const isLoading = ref(false);

  // 设置加载状态
  const setLoading = loading => {
    isLoading.value = loading;
  };

  return {
    isLoading,
    setLoading,
  };
});
